Skip to content

Bubble: don't rely on system text styles - #302

Merged
danirabbit merged 3 commits into
mainfrom
danirabbit/bubble-urgentlabel
Sep 10, 2026
Merged

Bubble: don't rely on system text styles#302
danirabbit merged 3 commits into
mainfrom
danirabbit/bubble-urgentlabel

Conversation

@danirabbit

Copy link
Copy Markdown
Member

Instead of relying on the system stylesheet to handle styles, make sure we add them ourselves here

@danirabbit
danirabbit requested a review from a team September 8, 2026 17:31

@wpkelso wpkelso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Only a semantic question that is realistically better addressed in tandem with Granite and thus not blocking here

Comment thread src/Bubble.vala

if (notification.priority == URGENT) {
add_css_class ("urgent");
title_label.add_css_class (Granite.CssClass.ERROR);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does "urgent" always imply an error? Even if it's linked to the same styles, should this have a semantic Granite.CssClass.URGENT class added?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of goes with elementary/granite#1022

Basically, I think urgent should be defined as an emergency which to me is semantically similar to error

@danirabbit
danirabbit merged commit 2422743 into main Sep 10, 2026
2 of 4 checks passed
@danirabbit
danirabbit deleted the danirabbit/bubble-urgentlabel branch September 10, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants